function test() {
    let par = module.constructor;
    console.log('Module.prototype.load:');
    console.log(par.prototype.load);
    console.log('constructor:');
    console.log(module.constructor);
    console.log('module.loaded: '+module.loaded);
    console.log('module.id: '+module.id);
    console.log('module.filename: '+module.filename);
    console.log('module.parent:');
    console.log(module.parent);
    console.log('module.children:');
    console.log(module.children);
}

function say(){
    //测试 module.exports 和 exports
    var obj = {
        name: ',',
        config: {}
    }
    var l = function(config, obj){
        //改变了形参config 的指向
        obj.config = {};
        // config = {};
        config.a = 'a';
        config.b = 'b';
        obj.config.c = function c(){}
        obj.config.d = function d(){}
        return obj.config;
    }

    l(obj.config, obj);
    console.log('最终的对象 :');
    console.log(obj);
}
console.log('in test:');
// console.log(Object.keys(this));
// for(var pro in this){
//     console.log(pro);
// }
console.log(this.constructor);

exports.say = say;

// module.exports = say
console.log('exports');
console.log(exports);
console.log('this:');
console.log(this);
